<template>
	<up-cell title="退出登录" isLink @click="handleLogOut"></up-cell>
</template>

<script>
	export default {
		data() {
			return {}
		},
		methods: {
			handleLogOut() {
				uni.clearStorageSync();
				uni.showLoading({ title: '退出中' });
				setTimeout(() => {
					this.$store.dispatch('LogOut');
					uni.reLaunch({
						url:'/pages/user/mobile-login'
					})
					uni.hideLoading();
				}, 500)
			}
		}
	}
</script>

<style>
</style>